﻿using System;
using System.Collections.Generic;
using System.Data;
namespace ZX.HIS.IDAL
{
    /// <summary>
    /// 接口层DrupInfo
    /// </summary>
    public interface IDrupInfo
    {
        #region 自写方法
        /// <summary>
        /// 药品信息表的添加
        /// </summary>
        /// <param name="mode"></param>
        /// <returns></returns>
        int DrupInfoAdd(ZX.HIS.Model.DrupInfo mode);

        /// <summary>
        /// 药品显示的分页
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSiez"></param>
        /// <returns></returns>
        List<ZX.HIS.Model.DrupInfo> DrupInfoList(int PageIndex, int PageSiez, string DrugName, string DrugTypeId, int  DrugState);

        /// <summary>
        /// 总条数
        /// </summary>
        /// <returns></returns>
        int DrupInfoCount(string DrugName, string DrugTypeId, int DrugState);
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        List<ZX.HIS.Model.DrupInfo> DrupInfoList();

         /// <summary>
        /// 药品信息修改返填 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ZX.HIS.Model.DrupInfo DrupInfoUpdShow(int id);
       /// <summary>
        /// 药品信息表修改
        /// </summary>
        /// <param name="mode"></param>
        /// <returns></returns>
         int DrupInfoUpd(ZX.HIS.Model.DrupInfo mode);
        #endregion
        #region  成员方法
        ///// <summary>
        ///// 得到最大ID
        ///// </summary>
        //int GetMaxId();
        ///// <summary>
        ///// 是否存在该记录
        ///// </summary>
        //bool Exists(int DrugId);
        ///// <summary>
        ///// 增加一条数据
        ///// </summary>
        //int Add(ZX.HIS.Model.DrupInfo model);
        ///// <summary>
        ///// 更新一条数据
        ///// </summary>
        //bool Update(ZX.HIS.Model.DrupInfo model);
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //bool Delete(int DrugId);
        //bool DeleteList(string DrugIdlist );
        ///// <summary>
        ///// 得到一个对象实体
        ///// </summary>
        //ZX.HIS.Model.DrupInfo GetModel(int DrugId);
        //ZX.HIS.Model.DrupInfo DataRowToModel(DataRow row);
        ///// <summary>
        ///// 获得数据列表
        ///// </summary>
        //DataSet GetList(string strWhere);
        ///// <summary>
        ///// 获得前几行数据
        ///// </summary>
        //DataSet GetList(int Top,string strWhere,string filedOrder);
        //int GetRecordCount(string strWhere);
        //DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        ///// <summary>
        ///// 根据分页获得数据列表
        ///// </summary>
        ////DataSet GetList(int PageSize,int PageIndex,string strWhere);
        #endregion  成员方法
        #region  MethodEx

        #endregion  MethodEx
    }
}
